package com.esisa.business;

import java.util.List;

import com.esisa.dao.TypeBetailDao;
import com.esisa.models.TypeBetail;

public class DefaultAdminManager implements AdminManager {

	private TypeBetailDao typeBetailDao;
	@Override
	public boolean createTypeBetail(TypeBetail typeBetail) {
		return typeBetailDao.insert(typeBetail);
	}

	@Override
	public TypeBetail findTypeBetail(String type) {
		return typeBetailDao.select(type);
	}

	@Override
	public List<TypeBetail> findAllTypeBetail() {
		return typeBetailDao.selectAll();
	}

	public void setTypeBetailDao(TypeBetailDao typeBetailDao) {
		this.typeBetailDao = typeBetailDao;
	}
	

}
